package bakudo.systems.finiteStateMachines.model {
	import bakudo.systems.finiteStateMachines.FiniteStatesMachine;	

	/**
	 * @author Micha� Rabi�ski
	 */
	public class Actor {

		private var _fsm : FiniteStatesMachine;

		public function Actor() {
			_fsm = new FiniteStatesMachine();
		}

		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// PUBLIC METHODS
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		public function update(time : Number) : void {
			fsm.update(time);
		}

		public function get fsm() : FiniteStatesMachine {
			return _fsm;
		}
	}
}
